<ion-header class="set">
    <header-component>
        <ion-toolbar>
            <ion-buttons class="button-left">
                <img navBackButton src="assets/imgs/return.svg" alt="">
            </ion-buttons>
            <ion-title>设置</ion-title>
        </ion-toolbar>
    </header-component>
</ion-header>
<ion-content class="setting">
    <div class="list list-luna">
        <div class="items">
            推送
            <label>
                <ion-toggle [(ngModel)]="pushstate" (ionChange)="togglePushNotification()"></ion-toggle>
            </label>
        </div>
        <div class="items">
            语音推送
            <label>
                <ion-toggle [(ngModel)]="voiceState" (ionChange)="toggleVoiceAlarm()"></ion-toggle>
            </label>
        </div>
        <!-- <div class="items">
            debug
            <label>
                <ion-toggle ng-change="toggleMode()" ng-true-value="'dev'" ng-false-value="'dis'"></ion-toggle>
            </label>
        </div> -->
        <div class="items">
            告警声音
            <label>
                <ion-toggle [(ngModel)]="state" (ionChange)="voiceToggle()"></ion-toggle>
            </label>
        </div>

        <div class="items" [hidden]="!state" (click)="toVoice()">
            提示音类型
            <span>{{ voiceType }}</span>
            <ion-icon class="icon " name="ios-arrow-forward"></ion-icon>
        </div>

        <div class="items" (click)="checkUpdate()"> 检查更新</div>
        <div class="items" (click)="logout()">退出</div>
        <!-- <div class="items ">切换账号</div> -->
    </div>
</ion-content>